#!/usr/bin/python
# -*- coding: utf-8 -*-

from flask_restful import Resource
from flask         import redirect,request,make_response

from e4ting.util   import Hardware

class WebCPUInfo(Resource):
    ''' 客户端心跳接口 '''
    #----------------------------------------------------------------------
    def __init__(self):
        super(WebCPUInfo, self).__init__()

    def get(self, **kwargs):
        data = Hardware().cpu()
        return dict(code=200, data=data)


